﻿namespace K9Nano.Updater;

public static class Constants
{
    /// <summary>
    /// 更新元数据的文件名称，见<see cref="ReleaseMetadata"/>
    /// </summary>
    public const string PackageFileName = "package.json";

    /// <summary>
    /// 更新日志文件名称
    /// </summary>
    public const string ReleaseLogFileName = "release.log";

    /// <summary>
    /// 存放本更新文件的临时目录
    /// </summary>
    public const string UpdaterAppTempPath = ".K9Temp";

    public const string HeaderClientId = "K9-Client-Id";

    public const string HeaderSign = "K9-Sign";

    public const string HeaderTimeStamp = "K9-Time-Stamp";

    public const string SignTemplate = "ClientId={0}&Secret={1}&TimeStamp={2}&Uri={3}";

    public const string ConfigurationSectionName = "Option";

    public static readonly string LogFile = "k9-update.log";
}
